FROM node:18-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install --registry=https://registry.npmmirror.com --legacy-peer-deps

COPY . .

RUN npm run build:prod

EXPOSE 8000

# 启动命令
CMD ["npm", "start"]  